package com.didispace;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.mail.MessagingException;

/**
 * Created by anzhen on 2017-6-6.
 */
@RestController
public class SendMailController {
	@Autowired
	private SendMailService sendMailService;

	@RequestMapping(value = "/sendMail")
	public String sendMail() throws MessagingException {
		sendMailService.sendMail();
		return "ok";
	}
}
